package com.example.mapper;


import cn.hutool.json.JSONObject;
import com.example.entity.TrainingLog;

import java.util.List;

public interface TrainingLogsMapper {
    boolean up(TrainingLog trainingLog);

    boolean add(TrainingLog trainingLog);

    boolean delete(TrainingLog trainingLog);

    List<JSONObject> list(TrainingLog trainingLog);

    TrainingLog getByUserIdDateTrainId(TrainingLog trainingLog);

    List<TrainingLog> listAll();

    List<TrainingLog> getByUserIdTrainId(Integer trainingId);

    List<JSONObject> listToday(TrainingLog trainingLog);
}
